using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._TraceNetworkTools._TraceConfiguration
{
    /// <summary>
    /// <para>Import Trace Configurations</para>
    /// <para>Imports named trace configurations from JSON format (.json file) to a trace network.</para>
    /// <para>将命名跟踪配置从 JSON 格式（.json文件）导入跟踪网络。</para>
    /// </summary>    
    [DisplayName("Import Trace Configurations")]
    public class ImportTraceConfigurations : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public ImportTraceConfigurations()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_trace_network">
        /// <para>Input Trace Network</para>
        /// <para>The target trace network to which the named trace configurations will be imported.</para>
        /// <para>将命名跟踪配置导入到的目标跟踪网络。</para>
        /// </param>
        /// <param name="_in_json_file">
        /// <para>Input  File (.json)</para>
        /// <para>The .json file containing the named trace configurations to import.</para>
        /// <para>包含要导入的命名跟踪配置的.json文件。</para>
        /// </param>
        public ImportTraceConfigurations(object _in_trace_network, object _in_json_file)
        {
            this._in_trace_network = _in_trace_network;
            this._in_json_file = _in_json_file;
        }
        public override string ToolboxName => "Trace Network Tools";

        public override string ToolName => "Import Trace Configurations";

        public override string CallName => "tn.ImportTraceConfigurations";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_trace_network, _in_json_file, _out_trace_network];

        /// <summary>
        /// <para>Input Trace Network</para>
        /// <para>The target trace network to which the named trace configurations will be imported.</para>
        /// <para>将命名跟踪配置导入到的目标跟踪网络。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Trace Network")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_trace_network { get; set; }


        /// <summary>
        /// <para>Input  File (.json)</para>
        /// <para>The .json file containing the named trace configurations to import.</para>
        /// <para>包含要导入的命名跟踪配置的.json文件。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input  File (.json)")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_json_file { get; set; }


        /// <summary>
        /// <para>Updated Trace Network</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Updated Trace Network")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_trace_network { get; set; }


        public ImportTraceConfigurations SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}